<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<script src="js/mui.min.js"></script>
		<link href="css/mui.min.css" rel="stylesheet" />
		<script type="text/javascript" charset="utf-8">
			mui.init();
		</script>
		<style>
			body {
				padding-top: 44px;
			}
			.mui-media-body{
				
			}
			.mui-media-body span {
				color: #888;
				font-size: 12px;
				margin: 0 5px;
			}
			
			.mui-table-view-cell p {
				margin-bottom: 5px;
				color: #222;width: 100%;
			}
			
			.mui-table-view .mui-media-object {
				line-height: 60px;
				max-width: 100px;
				height: 60px;
			}
			
			.mui-media-object {
				width: 30%;
				height: 60px;
			}
			
			.mui-ellipsis {
				white-space: normal;
				/* overflow: hidden; */
				/* white-space: nowrap; */
				/* text-overflow: ellipsis; */
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">石化新闻</h1>
		</header>
		<div class="mui-card" style="margin-bottom: 35px;">
			<ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-right" src="images/thumb2.jpg">
						<div class="mui-media-body">
							<p class="mui-ellipsis p1">年度七友狂欢节，人人有奖！707“代言人”就是你！！！</p>
							<span>化工709</span>
							<span>评论（4）</span>
							<span>12-15 12：30</span>
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-right" src="images/3thumb.jpg">
						<div class="mui-media-body">
							<p class="mui-ellipsis">山东：即日起到明年4月底，将下派17个督查组掀起安全督查风暴</p>
							<span>化工709</span>
							<span>评论（4）</span>
							<span>12-15 12：30</span>
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-right" src="images/4thumb.jpg">
						<div class="mui-media-body">
							<p class="mui-ellipsis">泵的164个技术问答，看完你就是专家（一）</p>
							<span>化工709</span>
							<span>评论（4）</span>
							<span>12-15 12：30</span>
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-right" src="images/5thumb.jpg">
						<div class="mui-media-body">
							<p class="mui-ellipsis">北京华福工程有限公司2016年多套聚丙烯装置一次开车成功</p>
							<span>化工709</span>
							<span>评论（4）</span>
							<span>12-15 12：30</span>
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-right" src="images/5704f486d2443_thumb.jpg">
						<div class="mui-media-body">
							<p class="mui-ellipsis">化工各专业标准规范总结（三）——给水排水、循环水、消防</p>
							<span>化工709</span>
							<span>评论（4）</span>
							<span>12-15 12：30</span>
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-right" src="images/6.jpg">
						<div class="mui-media-body">
							<p class="mui-ellipsis">年度七友狂欢节，人人有奖！707“代言人”就是你！！！</p>
							<span>化工709</span>
							<span>评论（4）</span>
							<span>12-15 12：30</span>
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-right" src="images/thumb2.jpg">
						<div class="mui-media-body">
							<p class="mui-ellipsis">年度七友狂欢节，人人有奖！707“代言人”就是你！！！</p>
							<span>化工709</span>
							<span>评论（4）</span>
							<span>12-15 12：30</span>
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-right" src="images/3thumb.jpg">
						<div class="mui-media-body">
							<p class="mui-ellipsis">年度七友狂欢节，人人有奖！707“代言人”就是你！！！</p>
							<span>化工709</span>
							<span>评论（4）</span>
							<span>12-15 12：30</span>
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-right" src="images/4thumb.jpg">
						<div class="mui-media-body">
							<p class="mui-ellipsis">年度七友狂欢节，人人有奖！707“代言人”就是你！！！</p>
							<span>化工709</span>
							<span>评论（4）</span>
							<span>12-15 12：30</span>
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-right" src="images/5thumb.jpg">
						<div class="mui-media-body">
							<p class="mui-ellipsis">年度七友狂欢节，人人有奖！707“代言人”就是你！！！</p>
							<span>化工709</span>
							<span>评论（4）</span>
							<span>12-15 12：30</span>
						</div>
					</a>
				</li>
			</ul>
		</div>
	</body>
	<script src="js/jquery-2.1.4.js"></script>
	
	<script>
	var keyword="专家";
		$(function(){
			var sb=$(".mui-ellipsis");
			console.log(sb);
			for(i=0;i<sb.length;i++){
				 var title=sb.eq(i).text();
				//alert(title);
				
				//alert(title.indexOf("专家"))
//				var highlight=title.indexOf("专家");
				
//				var ss=highlight.attr("color","red")
				if(title.indexOf(keyword)>0){
//					alert(title);
					var replace='<font color="red">'+keyword+'</font>';
					title=title.replace(keyword,replace);
					sb.eq(i).html(title);
				}
				
				
				
			}
	})
	</script>
</html>